﻿#region using statements
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Timers;
using System.Collections;
using Microsoft.VisualBasic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;
#endregion

namespace BrainPong
{
    public class Veld
    {
        #region Variable Declaration
        private float xmax, xmin, ymax, ymin;
        Vector3 _position;
        Vector3 _rotation;
        Vector3 _scale;
        private static Model _model;
        #endregion

        #region Properties
        public float XMax()
        {
           return _position.X + xmax;
        }
        public float XMin()
        {
            return _position.X - xmin;
        }
        public float YMax()
        {
            return _position.Y + ymax;
        }
        public float YMin()
        {
            return _position.Y - ymin;
        }
        #endregion

        public Veld(Vector3 position)
        {
            _position = position;
            xmax = 100.0f;
            xmin = 100.0f;
            ymax = 50.0f;
            ymin = 50.0f;
            _rotation = new Vector3((float)Math.PI * 0.5f, 0, (float)Math.PI * 0.5f);
            _scale = new Vector3(10f, 5f, 1f);
        }

        public static void loadModel()
        {
            _model = Game1.game.loadModel("pongVeld");
        }

        public void draw(Game1 game)
        {
            game.drawModel(_model, _position, _rotation,_scale);
        }
    }
}
